package cn.s1995.sloth.pay.biz.oo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.List;

/**
 * PayREQ
 *
 * @author Lex
 * @description
 * @date 2023/12/26 19:58
 */
@Data
@Schema(description = "支付参数")
public class PayParamREQ {

    /**
     * 用户id
     */
    @Schema(description = "用户id", hidden = true)
    private Long uid;

    /**
     * 支付方式：1.微信支付 2.支付宝 3.手动代付 4.paypal 5.google 6.apple 7.stripe
     */
    @NotNull(message = "支付方式不能为空")
    @Schema(description = "支付方式：1.微信支付 2.支付宝 3.手动代付 4.paypal 5.google 6.apple 7.stripe", required = true, example = "4")
    private Integer payMethod;

    /**
     * 订单号
     */
    @NotNull(message = "订单号不能为空")
    @Size(min = 1)
    @Schema(description = "订单号集合", required = true)
    private List<Long> orders;

}
